﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;

namespace ControleFinanceiro
{
    public class opera_bancos
    {
         
        SqlConnection conexao = new SqlConnection();
           public Object conecta()
           {     
                    conexao.ConnectionString = Properties.Settings.Default.conecte;
                    conexao.Open();
                    SqlCommand buscar = new SqlCommand();
                    buscar.CommandText = "SELECT * FROM tbFuncionario";
                    buscar.CommandType = System.Data.CommandType.Text;
                    buscar.Connection = conexao;
                    SqlDataReader DR; 
                    DR=buscar.ExecuteReader();
                    return DR;
          }
                                    
                   

    }
}